@extends('layouts.details')

@section('content')
    
    <table width="1200px" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:70px;">
        <form name="form1" method="post" action="">
            
            <tr>
                <td  bgcolor="#FFFFFF"><table width="800" border="0" align="center" cellpadding="0" cellspacing="1">
                        
                        <tr>
                            <td width="50"bgcolor="#FFFFFF"></td>
                            <td width="225" height="25" bgcolor="#FFFFFF"><div align="center"><strong>商品</strong></div></td>
                            <td width="252" bgcolor="#FFFFFF"><div align="center"><strong>名称</strong></div></td>
                            <td width="164" bgcolor="#FFFFFF"><div align="center"><strong>数量</strong></div></td>
                            <td width="164" bgcolor="#FFFFFF"><div align="center"><strong>单价</strong></div></td>
                            <td width="404" bgcolor="#FFFFFF"><div align="center"><strong>颜色</strong></div></td>
                            <td width="204" bgcolor="#FFFFFF"><div align="center"><strong>尺码</strong></div></td>
                            <td width="166" bgcolor="#FFFFFF"><div align="center"><strong>金额</strong></div></td>
                            <td width="371" bgcolor="#FFFFFF"><div align="center"><strong>删除</strong></div></td>
                        </tr>
                        
                        <tr>
                            <td style="border-top:1px #ccc solid "><input type="radio" class="radiodx"name="" value="good1"></td>
                            <td style="border-top:1px #ccc solid "height="25" width="100" bgcolor="#FFFFFF"><div align="center"><img src="{{$item->pic ?? ''}}" width=90px height=120px></div></td>
                            <td style="border-top:1px #ccc solid " height="25" bgcolor="#FFFFFF"><div align="center">{{$goods->name ?? ''}}</div></td>
                            <td style="border-top:1px #ccc solid " height="25" bgcolor="#FFFFFF"><div align="center">{{$goods->num ?? ''}} </div></td>
                            <td style="border-top:1px #ccc solid " height="25" bgcolor="#FFFFFF"><div align="center">{{$goods->price ?? ''}} </div></td>
                            @foreach($goodsMatch as $match)
                                <td style="border-top:1px #ccc solid " height="25" bgcolor="#FFFFFF"><div align="center">{{$match->color ?? ''}}</div></td>
                                <td style="border-top:1px #ccc solid " height="25" bgcolor="#FFFFFF"><div align="center"> {{$match->size ?? ''}}</div></td>
                            @endforeach
                            <td style="border-top:1px #ccc solid " height="25" bgcolor="#FFFFFF"><div align="center">{{$goods->totalPrice ?? ''}}</div></td>
                            <td style="border-top:1px #ccc solid " height="25" bgcolor="#FFFFFF"><div align="center"><a href="removegwc.php?id={{$item->goods_id ?? ''}}">×</a></div></td>
                        </tr>
                        
                        <tr>
                            <td height="25" colspan="8" bgcolor="#FFFFFF"><div class="center">
                                    <table width="900" height="25" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-bottom:50px;">
                                        <tr>
                                            <td width="125"style="border-top:1px #ccc solid "><div align="center" >
                                                    <a href="index.php"><strong>继续选购</strong></a>
                                                </div></td><br><br>
                                            <td style="border-top:1px #ccc solid "align="right"height="100"><div align="left"><strong>总计：</strong></div></td>
                                            <td style="border-top:1px #ccc solid "width="125"><div align="center"><a href=""><strong>清空购物车</strong></a></div></td>
                                            <td style="border-top:1px #ccc solid "width="125"><div align="center" ><a href="{{route('order.create')}}"><strong>购买</strong></a></div></td>
                                        
                                        
                                        </tr>
                                    </table>
                                </div></td>
                        </tr>
                    
                    </table></td>
            </tr>
        </form>
    </table>
    <p></p><p></p>

@endsection